@import '~antd/lib/style/themes/default.less';
.bar,
.line {
  position: relative;
  .unit {
    position: absolute;
    top: 0;
    font-family: 'Microsoft YaHei', serif;
  }
}
.pie {
  position: relative;
  .chart {
    position: relative;
    .total {
      position: absolute;
      top: 50%;
      left: 50%;
      font-family: 'Microsoft YaHei', serif;
      white-space: nowrap;
      text-align: center;
      transform: translate(-50%, -50%);
    }
  }
  .singlePie {
    display: inline-block;
    border-radius: 50%;
  }
  .title {
    text-align: center;
  }
  .pieLegend {
    font-size: 0.32rem;
    .icon {
      display: inline-block;
      width: 0.32rem;
      height: 0.32rem;
      margin-right: 0.2rem;
      vertical-align: middle;
      border-radius: 50%;
    }
    span {
      margin-left: 0.2rem;
    }
  }
  .pieTableLegend {
    padding-right: 0.4rem;
    .icon {
      display: inline-block;
      width: 0.2rem;
      height: 0.2rem;
      margin-right: 0.2rem;
      vertical-align: middle;
      border-radius: 0.04rem;
    }
    :global {
      .ant-table-thead > tr {
        background: none;
        th {
          height: 0.7rem;
          padding: 0 0.3rem;
          color: @text-color;
          font-size: 0.32rem;
          line-height: 0.7rem;
          white-space: nowrap;
          background: none;
          border: none;
          border-bottom: 0.04rem solid @primary-3;
          &:hover {
            background: none !important;
          }
        }
      }
      .ant-table-tbody > tr > td {
        height: 0.58rem;
        padding: 0 0.3rem;
        color: @text-color;
        font-size: 0.28rem;
        line-height: 0.58rem;
        white-space: nowrap;
        border-bottom: none;
      }
      .ant-table-tbody > tr:hover > td {
        background: none;
      }
      .ant-table-tbody > tr:nth-child(even) > td {
        background-color: rgba(0, 0, 0, 0) !important;
      }
      .ant-table-placeholder {
        color: @text-color;
        background: none;
        border-bottom: none;
      }
    }
  }
  .dark {
    :global {
      .ant-table-thead > tr > th,
      .ant-table-tbody > tr > td,
      .ant-table-placeholder {
        color: #fff;
      }
      .ant-table-thead > tr > th {
        border-bottom: 0.04rem solid #fff;
      }
    }
  }
}
.waterWave {
  position: relative;
  display: inline-block;
  //transform-origin: left;
  .text {
    position: absolute;
    top: 50%;
    left: 50%;
    font-family: 'Microsoft YaHei', serif;
    white-space: nowrap;
    text-align: center;
    transform: translate(-50%, -50%);
  }
  .waterWaveCanvasWrapper {
    transform: scale(0.5);
    transform-origin: 0 0;
  }
}
.gauge {
  position: relative;
  .text {
    position: absolute;
    bottom: 0;
    left: 50%;
    font-family: 'Microsoft YaHei', serif;
    text-align: center;
    transform: translate(-50%, 50%);
    div {
      white-space: nowrap;
    }
  }
}
.map {
  canvas {
    cursor: pointer !important;
  }
}
